﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="RealtorsPortal.AdminCP.Login" %>

<!DOCTYPE HTML>
<html lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="author" content="Hinsky Huy"/>
        <title>Login to control panel</title>
        <link href="Styles/login.css" rel="stylesheet" type="text/css" />
	</head>
<body>
	<div id="container">
		<h1>Login to control panel <br />Realtors portal</h1>
		<div id="box">
            <form id="frmlogin" runat="Server">
                <div class="row">
                    <div class="message">
                        <asp:Label ID="lblMessage" runat="server" style="margin-left:215px;" 
                            ForeColor="Red"></asp:Label>
                    </div><!-- end .message-->
                </div><!-- end .row-->
                <div class="row">
                    <label>Username: </label>
                    <asp:TextBox ID="txtUsername" runat="server" required></asp:TextBox>
                    
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtUsername" ErrorMessage="Please type username!" 
                        Font-Bold="False" ForeColor="Red"></asp:RequiredFieldValidator>
                    
                </div><!-- end .row-->
                <div class="row">
                    <label>Password: </label>
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" required></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtPassword" ErrorMessage="Please type password!" 
                        Font-Bold="False" ForeColor="Red"></asp:RequiredFieldValidator>
                </div><!-- end .row-->
                <div class="row">
                    <span class="remember">
                        <asp:CheckBox ID="chkIsAdmin" runat="server" /> Login as administrator
                    </span>
                </div><!-- end .row-->
                <div class="row">
                    <span class="remember">
                        <asp:CheckBox ID="chkRemember" runat="server" /> Remember 3 days
                    </span>
                    
                </div><!-- end .row-->
                <div class="row">
                <span class="remember">
                    <asp:Button ID="btnLogin" runat="server" Text="Login" class="login" 
                            onclick="btnLogin_Click" />
                </span>
                </div>
            </form>
		</div> <!-- end #box-->
	</div><!-- end #container-->
</body>
</html>
